package com.lmj.servicefeign.controller;

import com.lmj.servicefeign.service.ISayHiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SayHiController {

    @Autowired
    ISayHiService sayHiService;

    @RequestMapping("/feign/hi")
    public String sayHi(String name){

        return "this is feign return ! "  + this.sayHiService.sayHi(name);
    }
}
